package com.chinasoft.movies.service.impl;

import com.chinasoft.movies.mapper.PopularityAndRevenueMapper;
import com.chinasoft.movies.pojo.PopularityAndRevenue;
import com.chinasoft.movies.service.PopularityAndRevenueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PopularityAndRevenueServiceImpl implements PopularityAndRevenueService {

    @Autowired
    private PopularityAndRevenueMapper popularityAndRevenueMapper;

    @Override
    public List<PopularityAndRevenue> queryPopAndRevByGenre(String genre){
        List<PopularityAndRevenue> result = popularityAndRevenueMapper.queryPopAndRevByGenre(genre);
        return result;
    }
}
